package com.qianguo.buyer.address;

import android.content.Context;
import android.content.Intent;
import android.support.v4.app.FragmentTransaction;

import com.qianguo.buyer.R;
import com.qianguo.buyer.base.BaseTitleActivity;

import org.androidannotations.annotations.EActivity;

/**
 * @author eva
 * @date 16/8/18
 */
@EActivity(R.layout.activity_address_edit)
public class BuyerAddAddressActivity extends BaseTitleActivity {

    public static void jumpToAddAddress(Context context) {
        context.startActivity(new Intent(context, BuyerAddAddressActivity_.class));
    }

    @Override
    protected String getToolbarTitle() {
        return getString(R.string.buyer_address_add);
    }

    @Override
    protected void initializeUI() {
        BuyerAddAddressFragment fragment = new BuyerAddAddressFragment_();
        FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
        transaction.add(R.id.buyer_address_edit_container, fragment);
        transaction.commitAllowingStateLoss();
    }
}
